package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbPushDataMapper;
import com.ruoyi.system.domain.TbPushData;
import com.ruoyi.system.service.ITbPushDataService;

/**
 * 推送日志数据关联表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class TbPushDataServiceImpl implements ITbPushDataService 
{
    @Autowired
    private TbPushDataMapper tbPushDataMapper;

    /**
     * 查询推送日志数据关联表
     * 
     * @param logId 推送日志数据关联表主键
     * @return 推送日志数据关联表
     */
    @Override
    public TbPushData selectTbPushDataByLogId(String logId)
    {
        return tbPushDataMapper.selectTbPushDataByLogId(logId);
    }

    /**
     * 查询推送日志数据关联表列表
     * 
     * @param tbPushData 推送日志数据关联表
     * @return 推送日志数据关联表
     */
    @Override
    public List<TbPushData> selectTbPushDataList(TbPushData tbPushData)
    {
        return tbPushDataMapper.selectTbPushDataList(tbPushData);
    }

    /**
     * 新增推送日志数据关联表
     * 
     * @param tbPushData 推送日志数据关联表
     * @return 结果
     */
    @Override
    public int insertTbPushData(TbPushData tbPushData)
    {
        return tbPushDataMapper.insertTbPushData(tbPushData);
    }

    /**
     * 修改推送日志数据关联表
     * 
     * @param tbPushData 推送日志数据关联表
     * @return 结果
     */
    @Override
    public int updateTbPushData(TbPushData tbPushData)
    {
        return tbPushDataMapper.updateTbPushData(tbPushData);
    }

    /**
     * 批量删除推送日志数据关联表
     * 
     * @param logIds 需要删除的推送日志数据关联表主键
     * @return 结果
     */
    @Override
    public int deleteTbPushDataByLogIds(String[] logIds)
    {
        return tbPushDataMapper.deleteTbPushDataByLogIds(logIds);
    }

    /**
     * 删除推送日志数据关联表信息
     * 
     * @param logId 推送日志数据关联表主键
     * @return 结果
     */
    @Override
    public int deleteTbPushDataByLogId(String logId)
    {
        return tbPushDataMapper.deleteTbPushDataByLogId(logId);
    }
}
